package com.jiusit.dao;

public class BankDao {
	private String id;
	private String user_name;
	private String open_bank_name;
	private String currency;
	private String currency_type;
	private String user_name_account;
	private String user_type_account;
	private String start_date;
	private String end_date;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getOpen_bank_name() {
		return open_bank_name;
	}
	public void setOpen_bank_name(String open_bank_name) {
		this.open_bank_name = open_bank_name;
	}
	public String getCurrency() {
		return currency;
	}
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	public String getCurrency_type() {
		return currency_type;
	}
	public void setCurrency_type(String currency_type) {
		this.currency_type = currency_type;
	}
	public String getUser_name_account() {
		return user_name_account;
	}
	public void setUser_name_account(String user_name_account) {
		this.user_name_account = user_name_account;
	}
	public String getUser_type_account() {
		return user_type_account;
	}
	public void setUser_type_account(String user_type_account) {
		this.user_type_account = user_type_account;
	}
	public String getStart_date() {
		return start_date;
	}
	public void setStart_date(String start_date) {
		this.start_date = start_date;
	}
	public String getEnd_date() {
		return end_date;
	}
	public void setEnd_date(String end_date) {
		this.end_date = end_date;
	}
	@Override
	public String toString() {
		return "BankDao [id=" + id + ", user_name=" + user_name
				+ ", open_bank_name=" + open_bank_name + ", currency="
				+ currency + ", currency_type=" + currency_type
				+ ", user_name_account=" + user_name_account
				+ ", user_type_account=" + user_type_account + ", start_date="
				+ start_date + ", end_date=" + end_date + "]";
	}
	public BankDao(){
		
	}
	public BankDao(String id, String user_name, String open_bank_name,
			String currency, String currency_type, String user_name_account,
			String user_type_account, String start_date, String end_date) {
		super();
		this.id = id;
		this.user_name = user_name;
		this.open_bank_name = open_bank_name;
		this.currency = currency;
		this.currency_type = currency_type;
		this.user_name_account = user_name_account;
		this.user_type_account = user_type_account;
		this.start_date = start_date;
		this.end_date = end_date;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((currency == null) ? 0 : currency.hashCode());
		result = prime * result
				+ ((currency_type == null) ? 0 : currency_type.hashCode());
		result = prime * result
				+ ((end_date == null) ? 0 : end_date.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((open_bank_name == null) ? 0 : open_bank_name.hashCode());
		result = prime * result
				+ ((start_date == null) ? 0 : start_date.hashCode());
		result = prime * result
				+ ((user_name == null) ? 0 : user_name.hashCode());
		result = prime
				* result
				+ ((user_name_account == null) ? 0 : user_name_account
						.hashCode());
		result = prime
				* result
				+ ((user_type_account == null) ? 0 : user_type_account
						.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BankDao other = (BankDao) obj;
		if (currency == null) {
			if (other.currency != null)
				return false;
		} else if (!currency.equals(other.currency))
			return false;
		if (currency_type == null) {
			if (other.currency_type != null)
				return false;
		} else if (!currency_type.equals(other.currency_type))
			return false;
		if (end_date == null) {
			if (other.end_date != null)
				return false;
		} else if (!end_date.equals(other.end_date))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (open_bank_name == null) {
			if (other.open_bank_name != null)
				return false;
		} else if (!open_bank_name.equals(other.open_bank_name))
			return false;
		if (start_date == null) {
			if (other.start_date != null)
				return false;
		} else if (!start_date.equals(other.start_date))
			return false;
		if (user_name == null) {
			if (other.user_name != null)
				return false;
		} else if (!user_name.equals(other.user_name))
			return false;
		if (user_name_account == null) {
			if (other.user_name_account != null)
				return false;
		} else if (!user_name_account.equals(other.user_name_account))
			return false;
		if (user_type_account == null) {
			if (other.user_type_account != null)
				return false;
		} else if (!user_type_account.equals(other.user_type_account))
			return false;
		return true;
	}
}
